Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arch/arm64/src/imx9/imx9_usdhc.c: Simplify eventwait logic and remove… #322

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

jlaitine
Copy link

@jlaitine jlaitine commented Dec 3, 2024

… race condition

There is a race condition when timeout and completion interrupts occur at the same time.

Fix this and simplify the eventwait code.

@jlaitine jlaitine requested a review from pussuw December 5, 2024 13:06
@jlaitine
Copy link
Author

jlaitine commented Dec 5, 2024

tested with sdstress, 200 iterations with 300 10k files

sdstress -r 200 -b 10000 -f 300

… race condition

There is a race condition when timeout and completion interrupts occur at the same time.

Fix this and simplify the eventwait code.

Signed-off-by: Jukka Laitinen <[email protected]>
@jlaitine
Copy link
Author

jlaitine commented Dec 9, 2024

tested again with sdstress 4000 iterations over weekend, without errors. Will now merge this

@jlaitine jlaitine merged commit 800c295 into master Dec 9, 2024
10 checks passed
@jlaitine jlaitine deleted the remove_usdhc_race branch December 9, 2024 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants